package net.maxwoods.listener;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.WriteListener;
import javax.servlet.annotation.WebListener;
import java.io.IOException;

@Slf4j
@WebListener
public class MyWriteListener implements WriteListener {

    @Override
    public void onWritePossible() throws IOException {
        log.warn("onWritePossible:{}", this);
    }

    @Override
    public void onError(Throwable t) {
        log.warn("onError", t);
    }
}
